package hxy.bytecode.git;

import org.eclipse.jgit.api.TransportConfigCallback;
import org.eclipse.jgit.transport.SshSessionFactory;
import org.eclipse.jgit.transport.SshTransport;
import org.eclipse.jgit.transport.Transport;

/**
 * @author eric
 * @program bytecode
 * @description
 * @date 2020/3/4
 */
public class CtTransportConfigCallbackImpl implements TransportConfigCallback {
    final SshSessionFactory sshSessionFactory =new CtSshSessionFactory();
    @Override
    public void configure(Transport transport) {
        SshTransport sshTransport = (SshTransport) transport;
        sshTransport.setSshSessionFactory(sshSessionFactory);
    }
}
